<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>

<div class="viewBox myBox<?php echo $v['id'];?>"<?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" editUrl="<?php echo U('/Admin/Window/edit',array('jumpUrl' => 'closeModel','modules_id' => $v['id'], 'siteid' => __SITEID__, 'tablename'=>'News','fieldlist' => 'title,content','map'=>'id,'.$id));?>" isEdit="1"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }
         ?>
  <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
    <div class="panel-body">
      
      <h1 style="font-size:20px; text-align:center;"><?php echo $title;?></h1>
      <p id="tongji" style="float: left;text-align:center; line-height:40px; height:40px; border-bottom:1px dashed #ccc;">发布时间：<?php echo date('Y-m-d',$datetime); ?>&nbsp;&nbsp;&nbsp;</p><p id="dianji" style="text-align:center; line-height:40px; height:40px; border-bottom:1px dashed #ccc;">点击量：<?php echo $click;?></p>
      <?php echo $v['content'];?>
      
      
      <?php foreach($imgList as $v){?>
      <p>
      <img src="<?php echo getThumbPath($v['img_url']);?>" alt="<?php echo $v['title'];?>">
      </p>
      
      <?php } ?>
      
      <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more">分享到：</a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间">QQ空间</a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">新浪微博</a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博">腾讯微博</a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网">人人网</a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信">微信</a></div>
      <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{"bdSize":16},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
</script>

      <?php if(!empty($prev)){?>
      上一篇：<a target="_blank" href="<?php echo U($curcate['name'].'/'.$prev['id']);?>"><?php echo $prev['title'];?></a><br/>
      <?php }?>
      <?php if(!empty($next)){?>
      下一篇：<a target="_blank" href="<?php echo U($curcate['name'].'/'.$next['id']);?>"><?php echo $next['title'];?></a>
      <?php }?>

    </div>
  </div>
</div>
